<?php
session_start();
if (isset($_SESSION["user"])) {
	$user=$_SESSION["user"];
}else{
	echo "<script>alert('请先登录'); window.location.href='/index.php';</script>";
}
include_once 'conn/mysql.php';
$res_copy=sql('s','home',"*","");
$info_copy=firstrow($res_copy);
?>